package com.sardine.base.mybatis.router;

/**
 * 北京京东世纪贸易有限公司<br>
 * Created with IntelliJ IDEA.
 * Date:2015/11/16
 * Time:14:33
 * 分表规则计算 接口
 * @author daifeng<br>
 *         daifeng@jd.com
 * @since JDK 1.6 <br>
 * Copyright (c) 2015 JD System Incorporated All Rights Reserved.
 */
public interface RuleExpression {
    /**
     * 根据入参，计算出分表的规则。并将规则返回
     * @param parameter
     * @return
     */
    public String expression(Object parameter);
}
